<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>pybindgen.function</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pybindgen-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="pybindgen-module.html">Package&nbsp;pybindgen</a> ::
        Module&nbsp;function
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="pybindgen.function-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="pybindgen.function-module.html">Module pybindgen.function</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-docstring">C function wrapper</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">copy</tt> <tt class="py-keyword">import</tt> <tt class="py-name">copy</tt> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package pybindgen.typehandlers=pybindgen.typehandlers-module.html"><a title="pybindgen.typehandlers" class="py-name" href="#" onclick="return doclink('link-0', 'typehandlers', 'link-0');">typehandlers</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Module pybindgen.typehandlers.base=pybindgen.typehandlers.base-module.html"><a title="pybindgen.typehandlers.base" class="py-name" href="#" onclick="return doclink('link-1', 'base', 'link-1');">base</a></tt> <tt class="py-keyword">import</tt> <tt id="link-2" class="py-name" targets="Class pybindgen.typehandlers.base.ForwardWrapperBase=pybindgen.typehandlers.base.ForwardWrapperBase-class.html"><a title="pybindgen.typehandlers.base.ForwardWrapperBase" class="py-name" href="#" onclick="return doclink('link-2', 'ForwardWrapperBase', 'link-2');">ForwardWrapperBase</a></tt><tt class="py-op">,</tt> <tt id="link-3" class="py-name" targets="Class pybindgen.typehandlers.base.ReturnValue=pybindgen.typehandlers.base.ReturnValue-class.html"><a title="pybindgen.typehandlers.base.ReturnValue" class="py-name" href="#" onclick="return doclink('link-3', 'ReturnValue', 'link-3');">ReturnValue</a></tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-4" class="py-name"><a title="pybindgen.typehandlers" class="py-name" href="#" onclick="return doclink('link-4', 'typehandlers', 'link-0');">typehandlers</a></tt> <tt class="py-keyword">import</tt> <tt id="link-5" class="py-name" targets="Module pybindgen.typehandlers.codesink=pybindgen.typehandlers.codesink-module.html"><a title="pybindgen.typehandlers.codesink" class="py-name" href="#" onclick="return doclink('link-5', 'codesink', 'link-5');">codesink</a></tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-6" class="py-name" targets="Module pybindgen.overloading=pybindgen.overloading-module.html"><a title="pybindgen.overloading" class="py-name" href="#" onclick="return doclink('link-6', 'overloading', 'link-6');">overloading</a></tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-7" class="py-name" targets="Module pybindgen.settings=pybindgen.settings-module.html"><a title="pybindgen.settings" class="py-name" href="#" onclick="return doclink('link-7', 'settings', 'link-7');">settings</a></tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-8" class="py-name" targets="Module pybindgen.utils=pybindgen.utils-module.html"><a title="pybindgen.utils" class="py-name" href="#" onclick="return doclink('link-8', 'utils', 'link-8');">utils</a></tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">warnings</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">traceback</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"> </tt>
<a name="Function"></a><div id="Function-def"><a name="L15"></a><tt class="py-lineno"> 15</tt> <a class="py-toggle" href="#" id="Function-toggle" onclick="return toggle('Function');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="pybindgen.function.Function-class.html">Function</a><tt class="py-op">(</tt><tt class="py-base-class">ForwardWrapperBase</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Function-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Function-expanded"><a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line">    <tt class="py-docstring">"""</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt class="py-docstring">    Class that generates a wrapper to a C function.</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"> </tt>
<a name="Function.__init__"></a><div id="Function.__init__-def"><a name="L20"></a><tt class="py-lineno"> 20</tt> <a class="py-toggle" href="#" id="Function.__init__-toggle" onclick="return toggle('Function.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pybindgen.function.Function-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">function_name</tt><tt class="py-op">,</tt> <tt class="py-param">return_value</tt><tt class="py-op">,</tt> <tt class="py-param">parameters</tt><tt class="py-op">,</tt> <tt class="py-param">docstring</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">unblock_threads</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line">                 <tt class="py-param">template_parameters</tt><tt class="py-op">=</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-param">custom_name</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">deprecated</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Function.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Function.__init__-expanded"><a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"><tt class="py-docstring">        @param function_name: name of the C function</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"><tt class="py-docstring">        @param return_value: the function return value</tt> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line"><tt class="py-docstring">        @type return_value: L{ReturnValue}</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"><tt class="py-docstring">        @param parameters: the function parameters</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line"><tt class="py-docstring">        @type parameters: list of L{Parameter}</tt> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line"><tt class="py-docstring">        @param deprecated: deprecation state for this API:</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line"><tt class="py-docstring">          - False: Not deprecated</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line"><tt class="py-docstring">          - True: Deprecated</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line"><tt class="py-docstring">          - "message": Deprecated, and deprecation warning contains the given message</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">stack_where_defined</tt> <tt class="py-op">=</tt> <tt class="py-name">traceback</tt><tt class="py-op">.</tt><tt class="py-name">extract_stack</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line"> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-9" class="py-name" targets="Variable pybindgen.settings.unblock_threads=pybindgen.settings-module.html#unblock_threads"><a title="pybindgen.settings.unblock_threads" class="py-name" href="#" onclick="return doclink('link-9', 'unblock_threads', 'link-9');">unblock_threads</a></tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line">            <tt id="link-10" class="py-name"><a title="pybindgen.settings.unblock_threads" class="py-name" href="#" onclick="return doclink('link-10', 'unblock_threads', 'link-9');">unblock_threads</a></tt> <tt class="py-op">=</tt> <tt id="link-11" class="py-name"><a title="pybindgen.settings" class="py-name" href="#" onclick="return doclink('link-11', 'settings', 'link-7');">settings</a></tt><tt class="py-op">.</tt><tt id="link-12" class="py-name"><a title="pybindgen.settings.unblock_threads" class="py-name" href="#" onclick="return doclink('link-12', 'unblock_threads', 'link-9');">unblock_threads</a></tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">         </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">        <tt class="py-comment">## backward compatibility check</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">return_value</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">function_name</tt><tt class="py-op">,</tt> <tt id="link-13" class="py-name"><a title="pybindgen.typehandlers.base.ReturnValue" class="py-name" href="#" onclick="return doclink('link-13', 'ReturnValue', 'link-3');">ReturnValue</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">            <tt class="py-name">warnings</tt><tt class="py-op">.</tt><tt class="py-name">warn</tt><tt class="py-op">(</tt><tt class="py-string">"Function has changed API; see the API documentation (but trying to correct...)"</tt><tt class="py-op">,</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">                          <tt class="py-name">DeprecationWarning</tt><tt class="py-op">,</tt> <tt class="py-name">stacklevel</tt><tt class="py-op">=</tt><tt class="py-number">2</tt><tt class="py-op">)</tt> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">            <tt class="py-name">function_name</tt><tt class="py-op">,</tt> <tt class="py-name">return_value</tt> <tt class="py-op">=</tt> <tt class="py-name">return_value</tt><tt class="py-op">,</tt> <tt class="py-name">function_name</tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">             </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">return_value</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">            <tt class="py-name">return_value</tt> <tt class="py-op">=</tt> <tt id="link-14" class="py-name"><a title="pybindgen.typehandlers.base.ReturnValue" class="py-name" href="#" onclick="return doclink('link-14', 'ReturnValue', 'link-3');">ReturnValue</a></tt><tt class="py-op">.</tt><tt id="link-15" class="py-name" targets="Class Method pybindgen.typehandlers.base.Parameter.new()=pybindgen.typehandlers.base.Parameter-class.html#new,Class Method pybindgen.typehandlers.base.ReturnValue.new()=pybindgen.typehandlers.base.ReturnValue-class.html#new"><a title="pybindgen.typehandlers.base.Parameter.new
pybindgen.typehandlers.base.ReturnValue.new" class="py-name" href="#" onclick="return doclink('link-15', 'new', 'link-15');">new</a></tt><tt class="py-op">(</tt><tt class="py-string">'void'</tt><tt class="py-op">)</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line"> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">        <tt class="py-name">return_value</tt> <tt class="py-op">=</tt> <tt id="link-16" class="py-name"><a title="pybindgen.utils" class="py-name" href="#" onclick="return doclink('link-16', 'utils', 'link-8');">utils</a></tt><tt class="py-op">.</tt><tt id="link-17" class="py-name" targets="Function pybindgen.utils.eval_retval()=pybindgen.utils-module.html#eval_retval"><a title="pybindgen.utils.eval_retval" class="py-name" href="#" onclick="return doclink('link-17', 'eval_retval', 'link-17');">eval_retval</a></tt><tt class="py-op">(</tt><tt class="py-name">return_value</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line">        <tt class="py-name">parameters</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt id="link-18" class="py-name"><a title="pybindgen.utils" class="py-name" href="#" onclick="return doclink('link-18', 'utils', 'link-8');">utils</a></tt><tt class="py-op">.</tt><tt id="link-19" class="py-name" targets="Function pybindgen.utils.eval_param()=pybindgen.utils-module.html#eval_param"><a title="pybindgen.utils.eval_param" class="py-name" href="#" onclick="return doclink('link-19', 'eval_param', 'link-19');">eval_param</a></tt><tt class="py-op">(</tt><tt id="link-20" class="py-name" targets="Function pybindgen.utils.param()=pybindgen.utils-module.html#param"><a title="pybindgen.utils.param" class="py-name" href="#" onclick="return doclink('link-20', 'param', 'link-20');">param</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">)</tt> <tt class="py-keyword">for</tt> <tt id="link-21" class="py-name"><a title="pybindgen.utils.param" class="py-name" href="#" onclick="return doclink('link-21', 'param', 'link-20');">param</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">parameters</tt><tt class="py-op">]</tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line"> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">        <tt class="py-name">super</tt><tt class="py-op">(</tt><tt id="link-22" class="py-name" targets="Class pybindgen.function.Function=pybindgen.function.Function-class.html"><a title="pybindgen.function.Function" class="py-name" href="#" onclick="return doclink('link-22', 'Function', 'link-22');">Function</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-23" class="py-name" targets="Method pybindgen.container.Container.__init__()=pybindgen.container.Container-class.html#__init__,Method pybindgen.container.ContainerParameterBase.__init__()=pybindgen.container.ContainerParameterBase-class.html#__init__,Method pybindgen.container.ContainerPtrParameter.__init__()=pybindgen.container.ContainerPtrParameter-class.html#__init__,Method pybindgen.container.ContainerReturnValue.__init__()=pybindgen.container.ContainerReturnValue-class.html#__init__,Method pybindgen.container.ContainerReturnValueBase.__init__()=pybindgen.container.ContainerReturnValueBase-class.html#__init__,Method pybindgen.container.ContainerTraits.__init__()=pybindgen.container.ContainerTraits-class.html#__init__,Method pybindgen.container.IterNextWrapper.__init__()=pybindgen.container.IterNextWrapper-class.html#__init__,Method pybindgen.converter_functions.CToPythonConverter.__init__()=pybindgen.converter_functions.CToPythonConverter-class.html#__init__,Method pybindgen.converter_functions.PythonToCConverter.__init__()=pybindgen.converter_functions.PythonToCConverter-class.html#__init__,Method pybindgen.cppattribute.CppInstanceAttributeGetter.__init__()=pybindgen.cppattribute.CppInstanceAttributeGetter-class.html#__init__,Method pybindgen.cppattribute.CppInstanceAttributeSetter.__init__()=pybindgen.cppattribute.CppInstanceAttributeSetter-class.html#__init__,Method pybindgen.cppattribute.CppStaticAttributeGetter.__init__()=pybindgen.cppattribute.CppStaticAttributeGetter-class.html#__init__,Method pybindgen.cppattribute.CppStaticAttributeSetter.__init__()=pybindgen.cppattribute.CppStaticAttributeSetter-class.html#__init__,Method pybindgen.cppattribute.PyGetSetDef.__init__()=pybindgen.cppattribute.PyGetSetDef-class.html#__init__,Method pybindgen.cppattribute.PyMetaclass.__init__()=pybindgen.cppattribute.PyMetaclass-class.html#__init__,Method pybindgen.cppclass.CppClass.__init__()=pybindgen.cppclass.CppClass-class.html#__init__,Method pybindgen.cppclass.CppHelperClass.__init__()=pybindgen.cppclass.CppHelperClass-class.html#__init__,Method pybindgen.cppclass.FreeFunctionPolicy.__init__()=pybindgen.cppclass.FreeFunctionPolicy-class.html#__init__,Method pybindgen.cppclass.MemoryPolicy.__init__()=pybindgen.cppclass.MemoryPolicy-class.html#__init__,Method pybindgen.cppclass.ReferenceCountingFunctionsPolicy.__init__()=pybindgen.cppclass.ReferenceCountingFunctionsPolicy-class.html#__init__,Method pybindgen.cppclass.ReferenceCountingMethodsPolicy.__init__()=pybindgen.cppclass.ReferenceCountingMethodsPolicy-class.html#__init__,Method pybindgen.cppclass_typehandlers.CppClassParameterBase.__init__()=pybindgen.cppclass_typehandlers.CppClassParameterBase-class.html#__init__,Method pybindgen.cppclass_typehandlers.CppClassPtrParameter.__init__()=pybindgen.cppclass_typehandlers.CppClassPtrParameter-class.html#__init__,Method pybindgen.cppclass_typehandlers.CppClassPtrReturnValue.__init__()=pybindgen.cppclass_typehandlers.CppClassPtrReturnValue-class.html#__init__,Method pybindgen.cppclass_typehandlers.CppClassRefParameter.__init__()=pybindgen.cppclass_typehandlers.CppClassRefParameter-class.html#__init__,Method pybindgen.cppclass_typehandlers.CppClassReturnValue.__init__()=pybindgen.cppclass_typehandlers.CppClassReturnValue-class.html#__init__,Method pybindgen.cppclass_typehandlers.CppClassReturnValueBase.__init__()=pybindgen.cppclass_typehandlers.CppClassReturnValueBase-class.html#__init__,Method pybindgen.cppmethod.CppConstructor.__init__()=pybindgen.cppmethod.CppConstructor-class.html#__init__,Method pybindgen.cppmethod.CppDummyMethod.__init__()=pybindgen.cppmethod.CppDummyMethod-class.html#__init__,Method pybindgen.cppmethod.CppFunctionAsConstructor.__init__()=pybindgen.cppmethod.CppFunctionAsConstructor-class.html#__init__,Method pybindgen.cppmethod.CppMethod.__init__()=pybindgen.cppmethod.CppMethod-class.html#__init__,Method pybindgen.cppmethod.CppNoConstructor.__init__()=pybindgen.cppmethod.CppNoConstructor-class.html#__init__,Method pybindgen.cppmethod.CppVirtualMethodParentCaller.__init__()=pybindgen.cppmethod.CppVirtualMethodParentCaller-class.html#__init__,Method pybindgen.cppmethod.CppVirtualMethodProxy.__init__()=pybindgen.cppmethod.CppVirtualMethodProxy-class.html#__init__,Method pybindgen.cppmethod.CustomCppConstructorWrapper.__init__()=pybindgen.cppmethod.CustomCppConstructorWrapper-class.html#__init__,Method pybindgen.cppmethod.CustomCppMethodWrapper.__init__()=pybindgen.cppmethod.CustomCppMethodWrapper-class.html#__init__,Method pybindgen.cppmethod.DummyParameter.__init__()=pybindgen.cppmethod.DummyParameter-class.html#__init__,Method pybindgen.cppmethod.DummyReturnValue.__init__()=pybindgen.cppmethod.DummyReturnValue-class.html#__init__,Method pybindgen.enum.Enum.__init__()=pybindgen.enum.Enum-class.html#__init__,Method pybindgen.function.CustomFunctionWrapper.__init__()=pybindgen.function.CustomFunctionWrapper-class.html#__init__,Method pybindgen.function.Function.__init__()=pybindgen.function.Function-class.html#__init__,Method pybindgen.gccxmlparser.AnnotationsScanner.__init__()=pybindgen.gccxmlparser.AnnotationsScanner-class.html#__init__,Method pybindgen.gccxmlparser.GccXmlTypeRegistry.__init__()=pybindgen.gccxmlparser.GccXmlTypeRegistry-class.html#__init__,Method pybindgen.gccxmlparser.ModuleParser.__init__()=pybindgen.gccxmlparser.ModuleParser-class.html#__init__,Method pybindgen.gccxmlparser.PygenSection.__init__()=pybindgen.gccxmlparser.PygenSection-class.html#__init__,Method pybindgen.module.Module.__init__()=pybindgen.module.Module-class.html#__init__,Method pybindgen.module.ModuleBase.__init__()=pybindgen.module.ModuleBase-class.html#__init__,Method pybindgen.module.SubModule.__init__()=pybindgen.module.SubModule-class.html#__init__,Method pybindgen.overloading.OverloadedWrapper.__init__()=pybindgen.overloading.OverloadedWrapper-class.html#__init__,Method pybindgen.pytypeobject.PyNumberMethods.__init__()=pybindgen.pytypeobject.PyNumberMethods-class.html#__init__,Method pybindgen.pytypeobject.PySequenceMethods.__init__()=pybindgen.pytypeobject.PySequenceMethods-class.html#__init__,Method pybindgen.pytypeobject.PyTypeObject.__init__()=pybindgen.pytypeobject.PyTypeObject-class.html#__init__,Method pybindgen.typehandlers.base.BuildValueParameters.__init__()=pybindgen.typehandlers.base.BuildValueParameters-class.html#__init__,Method pybindgen.typehandlers.base.CodeBlock.CleanupHandle.__init__()=pybindgen.typehandlers.base.CodeBlock.CleanupHandle-class.html#__init__,Method pybindgen.typehandlers.base.CodeBlock.__init__()=pybindgen.typehandlers.base.CodeBlock-class.html#__init__,Method pybindgen.typehandlers.base.DeclarationsScope.__init__()=pybindgen.typehandlers.base.DeclarationsScope-class.html#__init__,Method pybindgen.typehandlers.base.ForwardWrapperBase.__init__()=pybindgen.typehandlers.base.ForwardWrapperBase-class.html#__init__,Method pybindgen.typehandlers.base.Parameter.__init__()=pybindgen.typehandlers.base.Parameter-class.html#__init__,Method pybindgen.typehandlers.base.Parameter.__metaclass__.__init__()=pybindgen.typehandlers.base.Parameter.__metaclass__-class.html#__init__,Method pybindgen.typehandlers.base.ParseTupleParameters.__init__()=pybindgen.typehandlers.base.ParseTupleParameters-class.html#__init__,Method pybindgen.typehandlers.base.PointerParameter.__init__()=pybindgen.typehandlers.base.PointerParameter-class.html#__init__,Method pybindgen.typehandlers.base.PointerReturnValue.__init__()=pybindgen.typehandlers.base.PointerReturnValue-class.html#__init__,Method pybindgen.typehandlers.base.ReturnValue.__init__()=pybindgen.typehandlers.base.ReturnValue-class.html#__init__,Method pybindgen.typehandlers.base.ReturnValue.__metaclass__.__init__()=pybindgen.typehandlers.base.ReturnValue.__metaclass__-class.html#__init__,Method pybindgen.typehandlers.base.ReverseWrapperBase.__init__()=pybindgen.typehandlers.base.ReverseWrapperBase-class.html#__init__,Method pybindgen.typehandlers.base.TypeHandler.__init__()=pybindgen.typehandlers.base.TypeHandler-class.html#__init__,Method pybindgen.typehandlers.base.TypeMatcher.__init__()=pybindgen.typehandlers.base.TypeMatcher-class.html#__init__,Method pybindgen.typehandlers.codesink.CodeSink.__init__()=pybindgen.typehandlers.codesink.CodeSink-class.html#__init__,Method pybindgen.typehandlers.codesink.FileCodeSink.__init__()=pybindgen.typehandlers.codesink.FileCodeSink-class.html#__init__,Method pybindgen.typehandlers.codesink.MemoryCodeSink.__init__()=pybindgen.typehandlers.codesink.MemoryCodeSink-class.html#__init__,Method pybindgen.typehandlers.codesink.NullCodeSink.__init__()=pybindgen.typehandlers.codesink.NullCodeSink-class.html#__init__,Method pybindgen.typehandlers.ctypeparser.CType.__init__()=pybindgen.typehandlers.ctypeparser.CType-class.html#__init__,Method pybindgen.typehandlers.ctypeparser.TypeTraits.__init__()=pybindgen.typehandlers.ctypeparser.TypeTraits-class.html#__init__,Method pybindgen.typehandlers.ctypeparser.tokenizer.Token.__init__()=pybindgen.typehandlers.ctypeparser.tokenizer.Token-class.html#__init__,Method pybindgen.typehandlers.floattype.FloatPtrParam.__init__()=pybindgen.typehandlers.floattype.FloatPtrParam-class.html#__init__,Method pybindgen.typehandlers.inttype.Int8PtrParam.__init__()=pybindgen.typehandlers.inttype.Int8PtrParam-class.html#__init__,Method pybindgen.typehandlers.inttype.IntPtrParam.__init__()=pybindgen.typehandlers.inttype.IntPtrParam-class.html#__init__,Method pybindgen.typehandlers.inttype.UInt8PtrParam.__init__()=pybindgen.typehandlers.inttype.UInt8PtrParam-class.html#__init__,Method pybindgen.typehandlers.inttype.UnsignedIntPtrParam.__init__()=pybindgen.typehandlers.inttype.UnsignedIntPtrParam-class.html#__init__,Method pybindgen.typehandlers.pyobjecttype.PyObjectParam.__init__()=pybindgen.typehandlers.pyobjecttype.PyObjectParam-class.html#__init__,Method pybindgen.typehandlers.pyobjecttype.PyObjectReturnValue.__init__()=pybindgen.typehandlers.pyobjecttype.PyObjectReturnValue-class.html#__init__,Method pybindgen.wrapper_registry.NullWrapperRegistry.__init__()=pybindgen.wrapper_registry.NullWrapperRegistry-class.html#__init__,Method pybindgen.wrapper_registry.StdMapWrapperRegistry.__init__()=pybindgen.wrapper_registry.StdMapWrapperRegistry-class.html#__init__,Method pybindgen.wrapper_registry.WrapperRegistry.__init__()=pybindgen.wrapper_registry.WrapperRegistry-class.html#__init__"><a title="pybindgen.container.Container.__init__
pybindgen.container.ContainerParameterBase.__init__
pybindgen.container.ContainerPtrParameter.__init__
pybindgen.container.ContainerReturnValue.__init__
pybindgen.container.ContainerReturnValueBase.__init__
pybindgen.container.ContainerTraits.__init__
pybindgen.container.IterNextWrapper.__init__
pybindgen.converter_functions.CToPythonConverter.__init__
pybindgen.converter_functions.PythonToCConverter.__init__
pybindgen.cppattribute.CppInstanceAttributeGetter.__init__
pybindgen.cppattribute.CppInstanceAttributeSetter.__init__
pybindgen.cppattribute.CppStaticAttributeGetter.__init__
pybindgen.cppattribute.CppStaticAttributeSetter.__init__
pybindgen.cppattribute.PyGetSetDef.__init__
pybindgen.cppattribute.PyMetaclass.__init__
pybindgen.cppclass.CppClass.__init__
pybindgen.cppclass.CppHelperClass.__init__
pybindgen.cppclass.FreeFunctionPolicy.__init__
pybindgen.cppclass.MemoryPolicy.__init__
pybindgen.cppclass.ReferenceCountingFunctionsPolicy.__init__
pybindgen.cppclass.ReferenceCountingMethodsPolicy.__init__
pybindgen.cppclass_typehandlers.CppClassParameterBase.__init__
pybindgen.cppclass_typehandlers.CppClassPtrParameter.__init__
pybindgen.cppclass_typehandlers.CppClassPtrReturnValue.__init__
pybindgen.cppclass_typehandlers.CppClassRefParameter.__init__
pybindgen.cppclass_typehandlers.CppClassReturnValue.__init__
pybindgen.cppclass_typehandlers.CppClassReturnValueBase.__init__
pybindgen.cppmethod.CppConstructor.__init__
pybindgen.cppmethod.CppDummyMethod.__init__
pybindgen.cppmethod.CppFunctionAsConstructor.__init__
pybindgen.cppmethod.CppMethod.__init__
pybindgen.cppmethod.CppNoConstructor.__init__
pybindgen.cppmethod.CppVirtualMethodParentCaller.__init__
pybindgen.cppmethod.CppVirtualMethodProxy.__init__
pybindgen.cppmethod.CustomCppConstructorWrapper.__init__
pybindgen.cppmethod.CustomCppMethodWrapper.__init__
pybindgen.cppmethod.DummyParameter.__init__
pybindgen.cppmethod.DummyReturnValue.__init__
pybindgen.enum.Enum.__init__
pybindgen.function.CustomFunctionWrapper.__init__
pybindgen.function.Function.__init__
pybindgen.gccxmlparser.AnnotationsScanner.__init__
pybindgen.gccxmlparser.GccXmlTypeRegistry.__init__
pybindgen.gccxmlparser.ModuleParser.__init__
pybindgen.gccxmlparser.PygenSection.__init__
pybindgen.module.Module.__init__
pybindgen.module.ModuleBase.__init__
pybindgen.module.SubModule.__init__
pybindgen.overloading.OverloadedWrapper.__init__
pybindgen.pytypeobject.PyNumberMethods.__init__
pybindgen.pytypeobject.PySequenceMethods.__init__
pybindgen.pytypeobject.PyTypeObject.__init__
pybindgen.typehandlers.base.BuildValueParameters.__init__
pybindgen.typehandlers.base.CodeBlock.CleanupHandle.__init__
pybindgen.typehandlers.base.CodeBlock.__init__
pybindgen.typehandlers.base.DeclarationsScope.__init__
pybindgen.typehandlers.base.ForwardWrapperBase.__init__
pybindgen.typehandlers.base.Parameter.__init__
pybindgen.typehandlers.base.Parameter.__metaclass__.__init__
pybindgen.typehandlers.base.ParseTupleParameters.__init__
pybindgen.typehandlers.base.PointerParameter.__init__
pybindgen.typehandlers.base.PointerReturnValue.__init__
pybindgen.typehandlers.base.ReturnValue.__init__
pybindgen.typehandlers.base.ReturnValue.__metaclass__.__init__
pybindgen.typehandlers.base.ReverseWrapperBase.__init__
pybindgen.typehandlers.base.TypeHandler.__init__
pybindgen.typehandlers.base.TypeMatcher.__init__
pybindgen.typehandlers.codesink.CodeSink.__init__
pybindgen.typehandlers.codesink.FileCodeSink.__init__
pybindgen.typehandlers.codesink.MemoryCodeSink.__init__
pybindgen.typehandlers.codesink.NullCodeSink.__init__
pybindgen.typehandlers.ctypeparser.CType.__init__
pybindgen.typehandlers.ctypeparser.TypeTraits.__init__
pybindgen.typehandlers.ctypeparser.tokenizer.Token.__init__
pybindgen.typehandlers.floattype.FloatPtrParam.__init__
pybindgen.typehandlers.inttype.Int8PtrParam.__init__
pybindgen.typehandlers.inttype.IntPtrParam.__init__
pybindgen.typehandlers.inttype.UInt8PtrParam.__init__
pybindgen.typehandlers.inttype.UnsignedIntPtrParam.__init__
pybindgen.typehandlers.pyobjecttype.PyObjectParam.__init__
pybindgen.typehandlers.pyobjecttype.PyObjectReturnValue.__init__
pybindgen.wrapper_registry.NullWrapperRegistry.__init__
pybindgen.wrapper_registry.StdMapWrapperRegistry.__init__
pybindgen.wrapper_registry.WrapperRegistry.__init__" class="py-name" href="#" onclick="return doclink('link-23', '__init__', 'link-23');">__init__</a></tt><tt class="py-op">(</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">            <tt class="py-name">return_value</tt><tt class="py-op">,</tt> <tt class="py-name">parameters</tt><tt class="py-op">,</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">            <tt class="py-name">parse_error_return</tt><tt class="py-op">=</tt><tt class="py-string">"return NULL;"</tt><tt class="py-op">,</tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">            <tt class="py-name">error_return</tt><tt class="py-op">=</tt><tt class="py-string">"return NULL;"</tt><tt class="py-op">,</tt> </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">            <tt id="link-24" class="py-name"><a title="pybindgen.settings.unblock_threads" class="py-name" href="#" onclick="return doclink('link-24', 'unblock_threads', 'link-9');">unblock_threads</a></tt><tt class="py-op">=</tt><tt id="link-25" class="py-name"><a title="pybindgen.settings.unblock_threads" class="py-name" href="#" onclick="return doclink('link-25', 'unblock_threads', 'link-9');">unblock_threads</a></tt><tt class="py-op">)</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deprecated</tt> <tt class="py-op">=</tt> <tt class="py-name">deprecated</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_module</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">        <tt class="py-name">function_name</tt> <tt class="py-op">=</tt> <tt id="link-26" class="py-name"><a title="pybindgen.utils" class="py-name" href="#" onclick="return doclink('link-26', 'utils', 'link-8');">utils</a></tt><tt class="py-op">.</tt><tt id="link-27" class="py-name" targets="Function pybindgen.utils.ascii()=pybindgen.utils-module.html#ascii"><a title="pybindgen.utils.ascii" class="py-name" href="#" onclick="return doclink('link-27', 'ascii', 'link-27');">ascii</a></tt><tt class="py-op">(</tt><tt class="py-name">function_name</tt><tt class="py-op">)</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">function_name</tt> <tt class="py-op">=</tt> <tt class="py-name">function_name</tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_base_name</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_actual_name</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">docstring</tt> <tt class="py-op">=</tt> <tt class="py-name">docstring</tt> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">self_parameter_pystruct</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">template_parameters</tt> <tt class="py-op">=</tt> <tt class="py-name">template_parameters</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-28" class="py-name" targets="Variable pybindgen.cppmethod.CppMethod.custom_name=pybindgen.cppmethod.CppMethod-class.html#custom_name"><a title="pybindgen.cppmethod.CppMethod.custom_name" class="py-name" href="#" onclick="return doclink('link-28', 'custom_name', 'link-28');">custom_name</a></tt> <tt class="py-op">=</tt> <tt id="link-29" class="py-name"><a title="pybindgen.cppmethod.CppMethod.custom_name" class="py-name" href="#" onclick="return doclink('link-29', 'custom_name', 'link-28');">custom_name</a></tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">mangled_name</tt> <tt class="py-op">=</tt> <tt id="link-30" class="py-name"><a title="pybindgen.utils" class="py-name" href="#" onclick="return doclink('link-30', 'utils', 'link-8');">utils</a></tt><tt class="py-op">.</tt><tt id="link-31" class="py-name" targets="Function pybindgen.utils.get_mangled_name()=pybindgen.utils-module.html#get_mangled_name"><a title="pybindgen.utils.get_mangled_name" class="py-name" href="#" onclick="return doclink('link-31', 'get_mangled_name', 'link-31');">get_mangled_name</a></tt><tt class="py-op">(</tt><tt class="py-name">function_name</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">template_parameters</tt><tt class="py-op">)</tt> </tt>
</div><a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line"> </tt>
<a name="Function.clone"></a><div id="Function.clone-def"><a name="L67"></a><tt class="py-lineno"> 67</tt> <a class="py-toggle" href="#" id="Function.clone-toggle" onclick="return toggle('Function.clone');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pybindgen.function.Function-class.html#clone">clone</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Function.clone-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Function.clone-expanded"><a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">        <tt class="py-docstring">"""Creates a semi-deep copy of this function wrapper.  The returned</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line"><tt class="py-docstring">        function wrapper clone contains copies of all parameters, so</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line"><tt class="py-docstring">        they can be modified at will.</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">        <tt class="py-name">func</tt> <tt class="py-op">=</tt> <tt id="link-32" class="py-name"><a title="pybindgen.function.Function" class="py-name" href="#" onclick="return doclink('link-32', 'Function', 'link-22');">Function</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">function_name</tt><tt class="py-op">,</tt> </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">return_value</tt><tt class="py-op">,</tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">                        <tt class="py-op">[</tt><tt class="py-name">copy</tt><tt class="py-op">(</tt><tt id="link-33" class="py-name"><a title="pybindgen.utils.param" class="py-name" href="#" onclick="return doclink('link-33', 'param', 'link-20');">param</a></tt><tt class="py-op">)</tt> <tt class="py-keyword">for</tt> <tt id="link-34" class="py-name"><a title="pybindgen.utils.param" class="py-name" href="#" onclick="return doclink('link-34', 'param', 'link-20');">param</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">parameters</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">                        <tt class="py-name">docstring</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">docstring</tt><tt class="py-op">)</tt> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line">        <tt class="py-name">func</tt><tt class="py-op">.</tt><tt class="py-name">_module</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_module</tt> </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">        <tt class="py-name">func</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_base_name</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_base_name</tt> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">        <tt class="py-name">func</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_actual_name</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_actual_name</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">func</tt> </tt>
</div><a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line"> </tt>
<a name="Function.get_module"></a><div id="Function.get_module-def"><a name="L81"></a><tt class="py-lineno"> 81</tt> <a class="py-toggle" href="#" id="Function.get_module-toggle" onclick="return toggle('Function.get_module');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pybindgen.function.Function-class.html#get_module">get_module</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Function.get_module-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Function.get_module-expanded"><a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">        <tt class="py-docstring">"""Get the Module object this function belongs to"""</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_module</tt> </tt>
</div><a name="Function.set_module"></a><div id="Function.set_module-def"><a name="L84"></a><tt class="py-lineno"> 84</tt> <a class="py-toggle" href="#" id="Function.set_module-toggle" onclick="return toggle('Function.set_module');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pybindgen.function.Function-class.html#set_module">set_module</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">module</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Function.set_module-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Function.set_module-expanded"><a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">        <tt class="py-docstring">"""Set the Module object this function belongs to"""</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_module</tt> <tt class="py-op">=</tt> <tt id="link-35" class="py-name" targets="Variable pybindgen.container.Container.module=pybindgen.container.Container-class.html#module,Variable pybindgen.cppclass.CppClass.module=pybindgen.cppclass.CppClass-class.html#module,Variable pybindgen.enum.Enum.module=pybindgen.enum.Enum-class.html#module,Variable pybindgen.function.Function.module=pybindgen.function.Function-class.html#module,Module pybindgen.module=pybindgen.module-module.html"><a title="pybindgen.container.Container.module
pybindgen.cppclass.CppClass.module
pybindgen.enum.Enum.module
pybindgen.function.Function.module
pybindgen.module" class="py-name" href="#" onclick="return doclink('link-35', 'module', 'link-35');">module</a></tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_base_name</tt> <tt class="py-op">=</tt> <tt class="py-string">"_wrap_%s%s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">            <tt id="link-36" class="py-name"><a title="pybindgen.container.Container.module
pybindgen.cppclass.CppClass.module
pybindgen.enum.Enum.module
pybindgen.function.Function.module
pybindgen.module" class="py-name" href="#" onclick="return doclink('link-36', 'module', 'link-35');">module</a></tt><tt class="py-op">.</tt><tt class="py-name">prefix</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">mangled_name</tt><tt class="py-op">)</tt> </tt>
</div><a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">    <tt id="link-37" class="py-name"><a title="pybindgen.container.Container.module
pybindgen.cppclass.CppClass.module
pybindgen.enum.Enum.module
pybindgen.function.Function.module
pybindgen.module" class="py-name" href="#" onclick="return doclink('link-37', 'module', 'link-35');">module</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-38" class="py-name" targets="Method pybindgen.container.Container.get_module()=pybindgen.container.Container-class.html#get_module,Method pybindgen.cppclass.CppClass.get_module()=pybindgen.cppclass.CppClass-class.html#get_module,Method pybindgen.enum.Enum.get_module()=pybindgen.enum.Enum-class.html#get_module,Method pybindgen.function.Function.get_module()=pybindgen.function.Function-class.html#get_module"><a title="pybindgen.container.Container.get_module
pybindgen.cppclass.CppClass.get_module
pybindgen.enum.Enum.get_module
pybindgen.function.Function.get_module" class="py-name" href="#" onclick="return doclink('link-38', 'get_module', 'link-38');">get_module</a></tt><tt class="py-op">,</tt> <tt id="link-39" class="py-name" targets="Method pybindgen.container.Container.set_module()=pybindgen.container.Container-class.html#set_module,Method pybindgen.cppclass.CppClass.set_module()=pybindgen.cppclass.CppClass-class.html#set_module,Method pybindgen.enum.Enum.set_module()=pybindgen.enum.Enum-class.html#set_module,Method pybindgen.function.Function.set_module()=pybindgen.function.Function-class.html#set_module"><a title="pybindgen.container.Container.set_module
pybindgen.cppclass.CppClass.set_module
pybindgen.enum.Enum.set_module
pybindgen.function.Function.set_module" class="py-name" href="#" onclick="return doclink('link-39', 'set_module', 'link-39');">set_module</a></tt><tt class="py-op">)</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">     </tt>
<a name="Function.generate_call"></a><div id="Function.generate_call-def"><a name="L91"></a><tt class="py-lineno"> 91</tt> <a class="py-toggle" href="#" id="Function.generate_call-toggle" onclick="return toggle('Function.generate_call');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pybindgen.function.Function-class.html#generate_call">generate_call</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Function.generate_call-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Function.generate_call-expanded"><a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">        <tt class="py-docstring">"virtual method implementation; do not call"</tt> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_module</tt><tt class="py-op">.</tt><tt class="py-name">cpp_namespace_prefix</tt><tt class="py-op">:</tt> </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">            <tt class="py-name">namespace</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_module</tt><tt class="py-op">.</tt><tt class="py-name">cpp_namespace_prefix</tt> <tt class="py-op">+</tt> <tt class="py-string">'::'</tt> </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">            <tt class="py-name">namespace</tt> <tt class="py-op">=</tt> <tt class="py-string">''</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line"> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">template_parameters</tt><tt class="py-op">:</tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line">            <tt class="py-name">template_params</tt> <tt class="py-op">=</tt> <tt class="py-string">'&lt; %s &gt;'</tt> <tt class="py-op">%</tt> <tt class="py-string">', '</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">template_parameters</tt><tt class="py-op">)</tt> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">            <tt class="py-name">template_params</tt> <tt class="py-op">=</tt> <tt class="py-string">''</tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">  </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">return_value</tt><tt class="py-op">.</tt><tt class="py-name">ctype</tt> <tt class="py-op">==</tt> <tt class="py-string">'void'</tt><tt class="py-op">:</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">before_call</tt><tt class="py-op">.</tt><tt id="link-40" class="py-name" targets="Method pybindgen.typehandlers.base.CodeBlock.write_code()=pybindgen.typehandlers.base.CodeBlock-class.html#write_code"><a title="pybindgen.typehandlers.base.CodeBlock.write_code" class="py-name" href="#" onclick="return doclink('link-40', 'write_code', 'link-40');">write_code</a></tt><tt class="py-op">(</tt> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">                <tt class="py-string">'%s%s%s(%s);'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">namespace</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">function_name</tt><tt class="py-op">,</tt> <tt class="py-name">template_params</tt><tt class="py-op">,</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">                                 <tt class="py-string">", "</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">call_params</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">return_value</tt><tt class="py-op">.</tt><tt id="link-41" class="py-name" targets="Variable pybindgen.cppclass_typehandlers.CppClassReturnValue.REQUIRES_ASSIGNMENT_CONSTRUCTOR=pybindgen.cppclass_typehandlers.CppClassReturnValue-class.html#REQUIRES_ASSIGNMENT_CONSTRUCTOR,Variable pybindgen.typehandlers.base.ReturnValue.REQUIRES_ASSIGNMENT_CONSTRUCTOR=pybindgen.typehandlers.base.ReturnValue-class.html#REQUIRES_ASSIGNMENT_CONSTRUCTOR"><a title="pybindgen.cppclass_typehandlers.CppClassReturnValue.REQUIRES_ASSIGNMENT_CONSTRUCTOR
pybindgen.typehandlers.base.ReturnValue.REQUIRES_ASSIGNMENT_CONSTRUCTOR" class="py-name" href="#" onclick="return doclink('link-41', 'REQUIRES_ASSIGNMENT_CONSTRUCTOR', 'link-41');">REQUIRES_ASSIGNMENT_CONSTRUCTOR</a></tt><tt class="py-op">:</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">before_call</tt><tt class="py-op">.</tt><tt id="link-42" class="py-name"><a title="pybindgen.typehandlers.base.CodeBlock.write_code" class="py-name" href="#" onclick="return doclink('link-42', 'write_code', 'link-40');">write_code</a></tt><tt class="py-op">(</tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">                    <tt class="py-string">'%s retval = %s%s%s(%s);'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">return_value</tt><tt class="py-op">.</tt><tt class="py-name">ctype</tt><tt class="py-op">,</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">                                                 <tt class="py-name">namespace</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">function_name</tt><tt class="py-op">,</tt> <tt class="py-name">template_params</tt><tt class="py-op">,</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line">                                                 <tt class="py-string">", "</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">call_params</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">before_call</tt><tt class="py-op">.</tt><tt id="link-43" class="py-name"><a title="pybindgen.typehandlers.base.CodeBlock.write_code" class="py-name" href="#" onclick="return doclink('link-43', 'write_code', 'link-40');">write_code</a></tt><tt class="py-op">(</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">                    <tt class="py-string">'retval = %s%s%s(%s);'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">namespace</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">function_name</tt><tt class="py-op">,</tt> <tt class="py-name">template_params</tt><tt class="py-op">,</tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">                                              <tt class="py-string">", "</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">call_params</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line"> </tt>
<a name="Function._before_return_hook"></a><div id="Function._before_return_hook-def"><a name="L118"></a><tt class="py-lineno">118</tt> <a class="py-toggle" href="#" id="Function._before_return_hook-toggle" onclick="return toggle('Function._before_return_hook');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pybindgen.function.Function-class.html#_before_return_hook">_before_return_hook</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Function._before_return_hook-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Function._before_return_hook-expanded"><a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">        <tt class="py-docstring">"hook that post-processes parameters and check for custodian=&lt;n&gt; CppClass parameters"</tt> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">        <tt id="link-44" class="py-name" targets="Module pybindgen.cppclass_typehandlers=pybindgen.cppclass_typehandlers-module.html"><a title="pybindgen.cppclass_typehandlers" class="py-name" href="#" onclick="return doclink('link-44', 'cppclass_typehandlers', 'link-44');">cppclass_typehandlers</a></tt><tt class="py-op">.</tt><tt id="link-45" class="py-name" targets="Function pybindgen.cppclass_typehandlers.implement_parameter_custodians()=pybindgen.cppclass_typehandlers-module.html#implement_parameter_custodians"><a title="pybindgen.cppclass_typehandlers.implement_parameter_custodians" class="py-name" href="#" onclick="return doclink('link-45', 'implement_parameter_custodians', 'link-45');">implement_parameter_custodians</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div><a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line"> </tt>
<a name="Function.generate"></a><div id="Function.generate-def"><a name="L122"></a><tt class="py-lineno">122</tt> <a class="py-toggle" href="#" id="Function.generate-toggle" onclick="return toggle('Function.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pybindgen.function.Function-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">code_sink</tt><tt class="py-op">,</tt> <tt class="py-param">wrapper_name</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">extra_wrapper_params</tt><tt class="py-op">=</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Function.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Function.generate-expanded"><a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line"><tt class="py-docstring">        Generates the wrapper code</tt> </tt>
<a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line"><tt class="py-docstring">        code_sink -- a CodeSink instance that will receive the generated code</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line"><tt class="py-docstring">        wrapper_name -- name of wrapper function</tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">wrapper_name</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_actual_name</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_base_name</tt> </tt>
<a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_actual_name</tt> <tt class="py-op">=</tt> <tt class="py-name">wrapper_name</tt> </tt>
<a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line">        <tt class="py-name">tmp_sink</tt> <tt class="py-op">=</tt> <tt id="link-46" class="py-name"><a title="pybindgen.typehandlers.codesink" class="py-name" href="#" onclick="return doclink('link-46', 'codesink', 'link-5');">codesink</a></tt><tt class="py-op">.</tt><tt id="link-47" class="py-name" targets="Class pybindgen.typehandlers.codesink.MemoryCodeSink=pybindgen.typehandlers.codesink.MemoryCodeSink-class.html"><a title="pybindgen.typehandlers.codesink.MemoryCodeSink" class="py-name" href="#" onclick="return doclink('link-47', 'MemoryCodeSink', 'link-47');">MemoryCodeSink</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-48" class="py-name" targets="Method pybindgen.typehandlers.base.ForwardWrapperBase.generate_body()=pybindgen.typehandlers.base.ForwardWrapperBase-class.html#generate_body"><a title="pybindgen.typehandlers.base.ForwardWrapperBase.generate_body" class="py-name" href="#" onclick="return doclink('link-48', 'generate_body', 'link-48');">generate_body</a></tt><tt class="py-op">(</tt><tt class="py-name">tmp_sink</tt><tt class="py-op">)</tt> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line"> </tt>
<a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line">        <tt class="py-name">flags</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-49" class="py-name" targets="Method pybindgen.cppmethod.CppMethod.get_py_method_def_flags()=pybindgen.cppmethod.CppMethod-class.html#get_py_method_def_flags,Method pybindgen.typehandlers.base.ForwardWrapperBase.get_py_method_def_flags()=pybindgen.typehandlers.base.ForwardWrapperBase-class.html#get_py_method_def_flags"><a title="pybindgen.cppmethod.CppMethod.get_py_method_def_flags
pybindgen.typehandlers.base.ForwardWrapperBase.get_py_method_def_flags" class="py-name" href="#" onclick="return doclink('link-49', 'get_py_method_def_flags', 'link-49');">get_py_method_def_flags</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_args</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-string">'METH_VARARGS'</tt> <tt class="py-keyword">in</tt> <tt class="py-name">flags</tt><tt class="py-op">:</tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">self_parameter_pystruct</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line">                <tt class="py-name">self_param</tt> <tt class="py-op">=</tt> <tt class="py-string">'PyObject * PYBINDGEN_UNUSED(dummy)'</tt> </tt>
<a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line">                <tt class="py-name">self_param</tt> <tt class="py-op">=</tt> <tt class="py-string">'%s *self'</tt> <tt class="py-op">%</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">self_parameter_pystruct</tt> </tt>
<a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_args</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-name">self_param</tt><tt class="py-op">)</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_args</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-string">"PyObject *args"</tt><tt class="py-op">)</tt> </tt>
<a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-string">'METH_KEYWORDS'</tt> <tt class="py-keyword">in</tt> <tt class="py-name">flags</tt><tt class="py-op">:</tt> </tt>
<a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_args</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt><tt class="py-string">"PyObject *kwargs"</tt><tt class="py-op">)</tt> </tt>
<a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_args</tt><tt class="py-op">.</tt><tt class="py-name">extend</tt><tt class="py-op">(</tt><tt class="py-name">extra_wrapper_params</tt><tt class="py-op">)</tt> </tt>
<a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_return</tt> <tt class="py-op">=</tt> <tt class="py-string">"PyObject *"</tt> </tt>
<a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-50" class="py-name" targets="Method pybindgen.typehandlers.base.ForwardWrapperBase.write_open_wrapper()=pybindgen.typehandlers.base.ForwardWrapperBase-class.html#write_open_wrapper"><a title="pybindgen.typehandlers.base.ForwardWrapperBase.write_open_wrapper" class="py-name" href="#" onclick="return doclink('link-50', 'write_open_wrapper', 'link-50');">write_open_wrapper</a></tt><tt class="py-op">(</tt><tt class="py-name">code_sink</tt><tt class="py-op">)</tt> </tt>
<a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line">        <tt class="py-name">tmp_sink</tt><tt class="py-op">.</tt><tt id="link-51" class="py-name" targets="Method pybindgen.typehandlers.codesink.MemoryCodeSink.flush_to()=pybindgen.typehandlers.codesink.MemoryCodeSink-class.html#flush_to,Method pybindgen.typehandlers.codesink.NullCodeSink.flush_to()=pybindgen.typehandlers.codesink.NullCodeSink-class.html#flush_to"><a title="pybindgen.typehandlers.codesink.MemoryCodeSink.flush_to
pybindgen.typehandlers.codesink.NullCodeSink.flush_to" class="py-name" href="#" onclick="return doclink('link-51', 'flush_to', 'link-51');">flush_to</a></tt><tt class="py-op">(</tt><tt class="py-name">code_sink</tt><tt class="py-op">)</tt> </tt>
<a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-52" class="py-name" targets="Method pybindgen.typehandlers.base.ForwardWrapperBase.write_close_wrapper()=pybindgen.typehandlers.base.ForwardWrapperBase-class.html#write_close_wrapper"><a title="pybindgen.typehandlers.base.ForwardWrapperBase.write_close_wrapper" class="py-name" href="#" onclick="return doclink('link-52', 'write_close_wrapper', 'link-52');">write_close_wrapper</a></tt><tt class="py-op">(</tt><tt class="py-name">code_sink</tt><tt class="py-op">)</tt> </tt>
</div><a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line">         </tt>
<a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line"> </tt>
<a name="Function.generate_declaration"></a><div id="Function.generate_declaration-def"><a name="L153"></a><tt class="py-lineno">153</tt> <a class="py-toggle" href="#" id="Function.generate_declaration-toggle" onclick="return toggle('Function.generate_declaration');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pybindgen.function.Function-class.html#generate_declaration">generate_declaration</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">code_sink</tt><tt class="py-op">,</tt> <tt class="py-param">extra_wrapper_parameters</tt><tt class="py-op">=</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Function.generate_declaration-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Function.generate_declaration-expanded"><a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line">        <tt class="py-comment">## We need to fake generate the code (and throw away the</tt> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line">        <tt class="py-comment">## result) only in order to obtain correct method signature.</tt> </tt>
<a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-53" class="py-name" targets="Method pybindgen.container.IterNextWrapper.reset_code_generation_state()=pybindgen.container.IterNextWrapper-class.html#reset_code_generation_state,Method pybindgen.overloading.OverloadedWrapper.reset_code_generation_state()=pybindgen.overloading.OverloadedWrapper-class.html#reset_code_generation_state,Method pybindgen.typehandlers.base.ForwardWrapperBase.reset_code_generation_state()=pybindgen.typehandlers.base.ForwardWrapperBase-class.html#reset_code_generation_state,Method pybindgen.typehandlers.base.ReverseWrapperBase.reset_code_generation_state()=pybindgen.typehandlers.base.ReverseWrapperBase-class.html#reset_code_generation_state"><a title="pybindgen.container.IterNextWrapper.reset_code_generation_state
pybindgen.overloading.OverloadedWrapper.reset_code_generation_state
pybindgen.typehandlers.base.ForwardWrapperBase.reset_code_generation_state
pybindgen.typehandlers.base.ReverseWrapperBase.reset_code_generation_state" class="py-name" href="#" onclick="return doclink('link-53', 'reset_code_generation_state', 'link-53');">reset_code_generation_state</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-54" class="py-name" targets="Method pybindgen.container.Container.generate()=pybindgen.container.Container-class.html#generate,Method pybindgen.container.IterNextWrapper.generate()=pybindgen.container.IterNextWrapper-class.html#generate,Method pybindgen.converter_functions.CToPythonConverter.generate()=pybindgen.converter_functions.CToPythonConverter-class.html#generate,Method pybindgen.converter_functions.PythonToCConverter.generate()=pybindgen.converter_functions.PythonToCConverter-class.html#generate,Method pybindgen.cppattribute.CppInstanceAttributeGetter.generate()=pybindgen.cppattribute.CppInstanceAttributeGetter-class.html#generate,Method pybindgen.cppattribute.CppInstanceAttributeSetter.generate()=pybindgen.cppattribute.CppInstanceAttributeSetter-class.html#generate,Method pybindgen.cppattribute.CppStaticAttributeGetter.generate()=pybindgen.cppattribute.CppStaticAttributeGetter-class.html#generate,Method pybindgen.cppattribute.CppStaticAttributeSetter.generate()=pybindgen.cppattribute.CppStaticAttributeSetter-class.html#generate,Method pybindgen.cppattribute.PyGetSetDef.generate()=pybindgen.cppattribute.PyGetSetDef-class.html#generate,Method pybindgen.cppattribute.PyGetter.generate()=pybindgen.cppattribute.PyGetter-class.html#generate,Method pybindgen.cppattribute.PyMetaclass.generate()=pybindgen.cppattribute.PyMetaclass-class.html#generate,Method pybindgen.cppattribute.PySetter.generate()=pybindgen.cppattribute.PySetter-class.html#generate,Method pybindgen.cppclass.CppClass.generate()=pybindgen.cppclass.CppClass-class.html#generate,Method pybindgen.cppclass.CppHelperClass.generate()=pybindgen.cppclass.CppHelperClass-class.html#generate,Method pybindgen.cppmethod.CppConstructor.generate()=pybindgen.cppmethod.CppConstructor-class.html#generate,Method pybindgen.cppmethod.CppMethod.generate()=pybindgen.cppmethod.CppMethod-class.html#generate,Method pybindgen.cppmethod.CppNoConstructor.generate()=pybindgen.cppmethod.CppNoConstructor-class.html#generate,Method pybindgen.cppmethod.CppVirtualMethodProxy.generate()=pybindgen.cppmethod.CppVirtualMethodProxy-class.html#generate,Method pybindgen.cppmethod.CustomCppConstructorWrapper.generate()=pybindgen.cppmethod.CustomCppConstructorWrapper-class.html#generate,Method pybindgen.cppmethod.CustomCppMethodWrapper.generate()=pybindgen.cppmethod.CustomCppMethodWrapper-class.html#generate,Method pybindgen.enum.Enum.generate()=pybindgen.enum.Enum-class.html#generate,Method pybindgen.function.CustomFunctionWrapper.generate()=pybindgen.function.CustomFunctionWrapper-class.html#generate,Method pybindgen.function.Function.generate()=pybindgen.function.Function-class.html#generate,Method pybindgen.module.Module.generate()=pybindgen.module.Module-class.html#generate,Method pybindgen.overloading.OverloadedWrapper.generate()=pybindgen.overloading.OverloadedWrapper-class.html#generate,Method pybindgen.pytypeobject.PyNumberMethods.generate()=pybindgen.pytypeobject.PyNumberMethods-class.html#generate,Method pybindgen.pytypeobject.PySequenceMethods.generate()=pybindgen.pytypeobject.PySequenceMethods-class.html#generate,Method pybindgen.pytypeobject.PyTypeObject.generate()=pybindgen.pytypeobject.PyTypeObject-class.html#generate,Method pybindgen.typehandlers.base.ReverseWrapperBase.generate()=pybindgen.typehandlers.base.ReverseWrapperBase-class.html#generate,Method pybindgen.wrapper_registry.NullWrapperRegistry.generate()=pybindgen.wrapper_registry.NullWrapperRegistry-class.html#generate,Method pybindgen.wrapper_registry.StdMapWrapperRegistry.generate()=pybindgen.wrapper_registry.StdMapWrapperRegistry-class.html#generate,Method pybindgen.wrapper_registry.WrapperRegistry.generate()=pybindgen.wrapper_registry.WrapperRegistry-class.html#generate"><a title="pybindgen.container.Container.generate
pybindgen.container.IterNextWrapper.generate
pybindgen.converter_functions.CToPythonConverter.generate
pybindgen.converter_functions.PythonToCConverter.generate
pybindgen.cppattribute.CppInstanceAttributeGetter.generate
pybindgen.cppattribute.CppInstanceAttributeSetter.generate
pybindgen.cppattribute.CppStaticAttributeGetter.generate
pybindgen.cppattribute.CppStaticAttributeSetter.generate
pybindgen.cppattribute.PyGetSetDef.generate
pybindgen.cppattribute.PyGetter.generate
pybindgen.cppattribute.PyMetaclass.generate
pybindgen.cppattribute.PySetter.generate
pybindgen.cppclass.CppClass.generate
pybindgen.cppclass.CppHelperClass.generate
pybindgen.cppmethod.CppConstructor.generate
pybindgen.cppmethod.CppMethod.generate
pybindgen.cppmethod.CppNoConstructor.generate
pybindgen.cppmethod.CppVirtualMethodProxy.generate
pybindgen.cppmethod.CustomCppConstructorWrapper.generate
pybindgen.cppmethod.CustomCppMethodWrapper.generate
pybindgen.enum.Enum.generate
pybindgen.function.CustomFunctionWrapper.generate
pybindgen.function.Function.generate
pybindgen.module.Module.generate
pybindgen.overloading.OverloadedWrapper.generate
pybindgen.pytypeobject.PyNumberMethods.generate
pybindgen.pytypeobject.PySequenceMethods.generate
pybindgen.pytypeobject.PyTypeObject.generate
pybindgen.typehandlers.base.ReverseWrapperBase.generate
pybindgen.wrapper_registry.NullWrapperRegistry.generate
pybindgen.wrapper_registry.StdMapWrapperRegistry.generate
pybindgen.wrapper_registry.WrapperRegistry.generate" class="py-name" href="#" onclick="return doclink('link-54', 'generate', 'link-54');">generate</a></tt><tt class="py-op">(</tt><tt id="link-55" class="py-name"><a title="pybindgen.typehandlers.codesink" class="py-name" href="#" onclick="return doclink('link-55', 'codesink', 'link-5');">codesink</a></tt><tt class="py-op">.</tt><tt id="link-56" class="py-name" targets="Class pybindgen.typehandlers.codesink.NullCodeSink=pybindgen.typehandlers.codesink.NullCodeSink-class.html"><a title="pybindgen.typehandlers.codesink.NullCodeSink" class="py-name" href="#" onclick="return doclink('link-56', 'NullCodeSink', 'link-56');">NullCodeSink</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">extra_wrapper_params</tt><tt class="py-op">=</tt><tt class="py-name">extra_wrapper_parameters</tt><tt class="py-op">)</tt> </tt>
<a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_return</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">)</tt> </tt>
<a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_actual_name</tt><tt class="py-op">,</tt> <tt class="py-name">str</tt><tt class="py-op">)</tt> </tt>
<a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_args</tt><tt class="py-op">,</tt> <tt class="py-name">list</tt><tt class="py-op">)</tt> </tt>
<a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line">        <tt class="py-name">code_sink</tt><tt class="py-op">.</tt><tt id="link-57" class="py-name" targets="Method pybindgen.typehandlers.codesink.CodeSink.writeln()=pybindgen.typehandlers.codesink.CodeSink-class.html#writeln,Method pybindgen.typehandlers.codesink.FileCodeSink.writeln()=pybindgen.typehandlers.codesink.FileCodeSink-class.html#writeln,Method pybindgen.typehandlers.codesink.MemoryCodeSink.writeln()=pybindgen.typehandlers.codesink.MemoryCodeSink-class.html#writeln,Method pybindgen.typehandlers.codesink.NullCodeSink.writeln()=pybindgen.typehandlers.codesink.NullCodeSink-class.html#writeln"><a title="pybindgen.typehandlers.codesink.CodeSink.writeln
pybindgen.typehandlers.codesink.FileCodeSink.writeln
pybindgen.typehandlers.codesink.MemoryCodeSink.writeln
pybindgen.typehandlers.codesink.NullCodeSink.writeln" class="py-name" href="#" onclick="return doclink('link-57', 'writeln', 'link-57');">writeln</a></tt><tt class="py-op">(</tt><tt class="py-string">'%s %s(%s);'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_return</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_actual_name</tt><tt class="py-op">,</tt> <tt class="py-string">', '</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_args</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L162"></a><tt class="py-lineno">162</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-58" class="py-name"><a title="pybindgen.container.IterNextWrapper.reset_code_generation_state
pybindgen.overloading.OverloadedWrapper.reset_code_generation_state
pybindgen.typehandlers.base.ForwardWrapperBase.reset_code_generation_state
pybindgen.typehandlers.base.ReverseWrapperBase.reset_code_generation_state" class="py-name" href="#" onclick="return doclink('link-58', 'reset_code_generation_state', 'link-53');">reset_code_generation_state</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line"> </tt>
<a name="Function.get_py_method_def"></a><div id="Function.get_py_method_def-def"><a name="L164"></a><tt class="py-lineno">164</tt> <a class="py-toggle" href="#" id="Function.get_py_method_def-toggle" onclick="return toggle('Function.get_py_method_def');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pybindgen.function.Function-class.html#get_py_method_def">get_py_method_def</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Function.get_py_method_def-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Function.get_py_method_def-expanded"><a name="L165"></a><tt class="py-lineno">165</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line"><tt class="py-docstring">        Returns an array element to use in a PyMethodDef table.</tt> </tt>
<a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line"><tt class="py-docstring">        Should only be called after code generation.</tt> </tt>
<a name="L168"></a><tt class="py-lineno">168</tt>  <tt class="py-line"><tt class="py-docstring"></tt> </tt>
<a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line"><tt class="py-docstring">        @param name: python function/method name</tt> </tt>
<a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L171"></a><tt class="py-lineno">171</tt>  <tt class="py-line">        <tt class="py-name">flags</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-59" class="py-name"><a title="pybindgen.cppmethod.CppMethod.get_py_method_def_flags
pybindgen.typehandlers.base.ForwardWrapperBase.get_py_method_def_flags" class="py-name" href="#" onclick="return doclink('link-59', 'get_py_method_def_flags', 'link-49');">get_py_method_def_flags</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L172"></a><tt class="py-lineno">172</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_return</tt><tt class="py-op">,</tt> <tt class="py-name">basestring</tt><tt class="py-op">)</tt> </tt>
<a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_actual_name</tt><tt class="py-op">,</tt> <tt class="py-name">basestring</tt><tt class="py-op">)</tt> </tt>
<a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_args</tt><tt class="py-op">,</tt> <tt class="py-name">list</tt><tt class="py-op">)</tt> </tt>
<a name="L175"></a><tt class="py-lineno">175</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">"{(char *) \"%s\", (PyCFunction) %s, %s, %s },"</tt> <tt class="py-op">%</tt> \ </tt>
<a name="L176"></a><tt class="py-lineno">176</tt>  <tt class="py-line">               <tt class="py-op">(</tt><tt id="link-60" class="py-name" targets="Variable pybindgen.module.ModuleBase.name=pybindgen.module.ModuleBase-class.html#name"><a title="pybindgen.module.ModuleBase.name" class="py-name" href="#" onclick="return doclink('link-60', 'name', 'link-60');">name</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_actual_name</tt><tt class="py-op">,</tt> <tt class="py-string">'|'</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">flags</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L177"></a><tt class="py-lineno">177</tt>  <tt class="py-line">                <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">docstring</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt> <tt class="py-keyword">and</tt> <tt class="py-string">"NULL"</tt> <tt class="py-keyword">or</tt> <tt class="py-op">(</tt><tt class="py-string">'"'</tt><tt class="py-op">+</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">docstring</tt><tt class="py-op">+</tt><tt class="py-string">'"'</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L178"></a><tt class="py-lineno">178</tt>  <tt class="py-line"> </tt>
<a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line"> </tt>
<a name="CustomFunctionWrapper"></a><div id="CustomFunctionWrapper-def"><a name="L180"></a><tt class="py-lineno">180</tt> <a class="py-toggle" href="#" id="CustomFunctionWrapper-toggle" onclick="return toggle('CustomFunctionWrapper');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="pybindgen.function.CustomFunctionWrapper-class.html">CustomFunctionWrapper</a><tt class="py-op">(</tt><tt class="py-base-class">Function</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="CustomFunctionWrapper-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="CustomFunctionWrapper-expanded"><a name="L181"></a><tt class="py-lineno">181</tt>  <tt class="py-line">    <tt class="py-docstring">"""</tt> </tt>
<a name="L182"></a><tt class="py-lineno">182</tt>  <tt class="py-line"><tt class="py-docstring">    Adds a custom function wrapper.  The custom wrapper must be</tt> </tt>
<a name="L183"></a><tt class="py-lineno">183</tt>  <tt class="py-line"><tt class="py-docstring">    prepared to support overloading, i.e. it must have an additional</tt> </tt>
<a name="L184"></a><tt class="py-lineno">184</tt>  <tt class="py-line"><tt class="py-docstring">    "PyObject **return_exception" parameter, and raised exceptions</tt> </tt>
<a name="L185"></a><tt class="py-lineno">185</tt>  <tt class="py-line"><tt class="py-docstring">    must be returned by this parameter.</tt> </tt>
<a name="L186"></a><tt class="py-lineno">186</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line"> </tt>
<a name="L188"></a><tt class="py-lineno">188</tt>  <tt class="py-line">    <tt id="link-61" class="py-name" targets="Variable pybindgen.cppmethod.CustomCppConstructorWrapper.NEEDS_OVERLOADING_INTERFACE=pybindgen.cppmethod.CustomCppConstructorWrapper-class.html#NEEDS_OVERLOADING_INTERFACE,Variable pybindgen.cppmethod.CustomCppMethodWrapper.NEEDS_OVERLOADING_INTERFACE=pybindgen.cppmethod.CustomCppMethodWrapper-class.html#NEEDS_OVERLOADING_INTERFACE,Variable pybindgen.function.CustomFunctionWrapper.NEEDS_OVERLOADING_INTERFACE=pybindgen.function.CustomFunctionWrapper-class.html#NEEDS_OVERLOADING_INTERFACE"><a title="pybindgen.cppmethod.CustomCppConstructorWrapper.NEEDS_OVERLOADING_INTERFACE
pybindgen.cppmethod.CustomCppMethodWrapper.NEEDS_OVERLOADING_INTERFACE
pybindgen.function.CustomFunctionWrapper.NEEDS_OVERLOADING_INTERFACE" class="py-name" href="#" onclick="return doclink('link-61', 'NEEDS_OVERLOADING_INTERFACE', 'link-61');">NEEDS_OVERLOADING_INTERFACE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
<a name="L189"></a><tt class="py-lineno">189</tt>  <tt class="py-line"> </tt>
<a name="CustomFunctionWrapper.__init__"></a><div id="CustomFunctionWrapper.__init__-def"><a name="L190"></a><tt class="py-lineno">190</tt> <a class="py-toggle" href="#" id="CustomFunctionWrapper.__init__-toggle" onclick="return toggle('CustomFunctionWrapper.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pybindgen.function.CustomFunctionWrapper-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">function_name</tt><tt class="py-op">,</tt> <tt class="py-param">wrapper_name</tt><tt class="py-op">,</tt> <tt class="py-param">wrapper_body</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> </tt>
<a name="L191"></a><tt class="py-lineno">191</tt>  <tt class="py-line">                 <tt class="py-param">flags</tt><tt class="py-op">=</tt><tt class="py-op">(</tt><tt class="py-string">'METH_VARARGS'</tt><tt class="py-op">,</tt> <tt class="py-string">'METH_KEYWORDS'</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="CustomFunctionWrapper.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CustomFunctionWrapper.__init__-expanded"><a name="L192"></a><tt class="py-lineno">192</tt>  <tt class="py-line">        <tt class="py-name">super</tt><tt class="py-op">(</tt><tt id="link-62" class="py-name" targets="Class pybindgen.function.CustomFunctionWrapper=pybindgen.function.CustomFunctionWrapper-class.html"><a title="pybindgen.function.CustomFunctionWrapper" class="py-name" href="#" onclick="return doclink('link-62', 'CustomFunctionWrapper', 'link-62');">CustomFunctionWrapper</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-63" class="py-name"><a title="pybindgen.container.Container.__init__
pybindgen.container.ContainerParameterBase.__init__
pybindgen.container.ContainerPtrParameter.__init__
pybindgen.container.ContainerReturnValue.__init__
pybindgen.container.ContainerReturnValueBase.__init__
pybindgen.container.ContainerTraits.__init__
pybindgen.container.IterNextWrapper.__init__
pybindgen.converter_functions.CToPythonConverter.__init__
pybindgen.converter_functions.PythonToCConverter.__init__
pybindgen.cppattribute.CppInstanceAttributeGetter.__init__
pybindgen.cppattribute.CppInstanceAttributeSetter.__init__
pybindgen.cppattribute.CppStaticAttributeGetter.__init__
pybindgen.cppattribute.CppStaticAttributeSetter.__init__
pybindgen.cppattribute.PyGetSetDef.__init__
pybindgen.cppattribute.PyMetaclass.__init__
pybindgen.cppclass.CppClass.__init__
pybindgen.cppclass.CppHelperClass.__init__
pybindgen.cppclass.FreeFunctionPolicy.__init__
pybindgen.cppclass.MemoryPolicy.__init__
pybindgen.cppclass.ReferenceCountingFunctionsPolicy.__init__
pybindgen.cppclass.ReferenceCountingMethodsPolicy.__init__
pybindgen.cppclass_typehandlers.CppClassParameterBase.__init__
pybindgen.cppclass_typehandlers.CppClassPtrParameter.__init__
pybindgen.cppclass_typehandlers.CppClassPtrReturnValue.__init__
pybindgen.cppclass_typehandlers.CppClassRefParameter.__init__
pybindgen.cppclass_typehandlers.CppClassReturnValue.__init__
pybindgen.cppclass_typehandlers.CppClassReturnValueBase.__init__
pybindgen.cppmethod.CppConstructor.__init__
pybindgen.cppmethod.CppDummyMethod.__init__
pybindgen.cppmethod.CppFunctionAsConstructor.__init__
pybindgen.cppmethod.CppMethod.__init__
pybindgen.cppmethod.CppNoConstructor.__init__
pybindgen.cppmethod.CppVirtualMethodParentCaller.__init__
pybindgen.cppmethod.CppVirtualMethodProxy.__init__
pybindgen.cppmethod.CustomCppConstructorWrapper.__init__
pybindgen.cppmethod.CustomCppMethodWrapper.__init__
pybindgen.cppmethod.DummyParameter.__init__
pybindgen.cppmethod.DummyReturnValue.__init__
pybindgen.enum.Enum.__init__
pybindgen.function.CustomFunctionWrapper.__init__
pybindgen.function.Function.__init__
pybindgen.gccxmlparser.AnnotationsScanner.__init__
pybindgen.gccxmlparser.GccXmlTypeRegistry.__init__
pybindgen.gccxmlparser.ModuleParser.__init__
pybindgen.gccxmlparser.PygenSection.__init__
pybindgen.module.Module.__init__
pybindgen.module.ModuleBase.__init__
pybindgen.module.SubModule.__init__
pybindgen.overloading.OverloadedWrapper.__init__
pybindgen.pytypeobject.PyNumberMethods.__init__
pybindgen.pytypeobject.PySequenceMethods.__init__
pybindgen.pytypeobject.PyTypeObject.__init__
pybindgen.typehandlers.base.BuildValueParameters.__init__
pybindgen.typehandlers.base.CodeBlock.CleanupHandle.__init__
pybindgen.typehandlers.base.CodeBlock.__init__
pybindgen.typehandlers.base.DeclarationsScope.__init__
pybindgen.typehandlers.base.ForwardWrapperBase.__init__
pybindgen.typehandlers.base.Parameter.__init__
pybindgen.typehandlers.base.Parameter.__metaclass__.__init__
pybindgen.typehandlers.base.ParseTupleParameters.__init__
pybindgen.typehandlers.base.PointerParameter.__init__
pybindgen.typehandlers.base.PointerReturnValue.__init__
pybindgen.typehandlers.base.ReturnValue.__init__
pybindgen.typehandlers.base.ReturnValue.__metaclass__.__init__
pybindgen.typehandlers.base.ReverseWrapperBase.__init__
pybindgen.typehandlers.base.TypeHandler.__init__
pybindgen.typehandlers.base.TypeMatcher.__init__
pybindgen.typehandlers.codesink.CodeSink.__init__
pybindgen.typehandlers.codesink.FileCodeSink.__init__
pybindgen.typehandlers.codesink.MemoryCodeSink.__init__
pybindgen.typehandlers.codesink.NullCodeSink.__init__
pybindgen.typehandlers.ctypeparser.CType.__init__
pybindgen.typehandlers.ctypeparser.TypeTraits.__init__
pybindgen.typehandlers.ctypeparser.tokenizer.Token.__init__
pybindgen.typehandlers.floattype.FloatPtrParam.__init__
pybindgen.typehandlers.inttype.Int8PtrParam.__init__
pybindgen.typehandlers.inttype.IntPtrParam.__init__
pybindgen.typehandlers.inttype.UInt8PtrParam.__init__
pybindgen.typehandlers.inttype.UnsignedIntPtrParam.__init__
pybindgen.typehandlers.pyobjecttype.PyObjectParam.__init__
pybindgen.typehandlers.pyobjecttype.PyObjectReturnValue.__init__
pybindgen.wrapper_registry.NullWrapperRegistry.__init__
pybindgen.wrapper_registry.StdMapWrapperRegistry.__init__
pybindgen.wrapper_registry.WrapperRegistry.__init__" class="py-name" href="#" onclick="return doclink('link-63', '__init__', 'link-23');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">function_name</tt><tt class="py-op">,</tt> <tt id="link-64" class="py-name"><a title="pybindgen.typehandlers.base.ReturnValue" class="py-name" href="#" onclick="return doclink('link-64', 'ReturnValue', 'link-3');">ReturnValue</a></tt><tt class="py-op">.</tt><tt id="link-65" class="py-name"><a title="pybindgen.typehandlers.base.Parameter.new
pybindgen.typehandlers.base.ReturnValue.new" class="py-name" href="#" onclick="return doclink('link-65', 'new', 'link-15');">new</a></tt><tt class="py-op">(</tt><tt class="py-string">'void'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L193"></a><tt class="py-lineno">193</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_base_name</tt> <tt class="py-op">=</tt> <tt class="py-name">wrapper_name</tt> </tt>
<a name="L194"></a><tt class="py-lineno">194</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_actual_name</tt> <tt class="py-op">=</tt> <tt class="py-name">wrapper_name</tt> </tt>
<a name="L195"></a><tt class="py-lineno">195</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">meth_flags</tt> <tt class="py-op">=</tt> <tt class="py-name">list</tt><tt class="py-op">(</tt><tt class="py-name">flags</tt><tt class="py-op">)</tt> </tt>
<a name="L196"></a><tt class="py-lineno">196</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_body</tt> <tt class="py-op">=</tt> <tt class="py-name">wrapper_body</tt> </tt>
<a name="L197"></a><tt class="py-lineno">197</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_args</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">"PyObject *args"</tt><tt class="py-op">,</tt> <tt class="py-string">"PyObject *kwargs"</tt><tt class="py-op">,</tt> <tt class="py-string">"PyObject **return_exception"</tt><tt class="py-op">]</tt> </tt>
<a name="L198"></a><tt class="py-lineno">198</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_return</tt> <tt class="py-op">=</tt> <tt class="py-string">"PyObject *"</tt> </tt>
</div><a name="L199"></a><tt class="py-lineno">199</tt>  <tt class="py-line"> </tt>
<a name="L200"></a><tt class="py-lineno">200</tt>  <tt class="py-line"> </tt>
<a name="CustomFunctionWrapper.generate"></a><div id="CustomFunctionWrapper.generate-def"><a name="L201"></a><tt class="py-lineno">201</tt> <a class="py-toggle" href="#" id="CustomFunctionWrapper.generate-toggle" onclick="return toggle('CustomFunctionWrapper.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pybindgen.function.CustomFunctionWrapper-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">code_sink</tt><tt class="py-op">,</tt> <tt class="py-param">dummy_wrapper_name</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">extra_wrapper_params</tt><tt class="py-op">=</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="CustomFunctionWrapper.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CustomFunctionWrapper.generate-expanded"><a name="L202"></a><tt class="py-lineno">202</tt>  <tt class="py-line">        <tt class="py-keyword">assert</tt> <tt class="py-name">extra_wrapper_params</tt> <tt class="py-op">==</tt> <tt class="py-op">[</tt><tt class="py-string">"PyObject **return_exception"</tt><tt class="py-op">]</tt> </tt>
<a name="L203"></a><tt class="py-lineno">203</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_body</tt> <tt class="py-keyword">is</tt> <tt class="py-keyword">not</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L204"></a><tt class="py-lineno">204</tt>  <tt class="py-line">            <tt class="py-name">code_sink</tt><tt class="py-op">.</tt><tt id="link-66" class="py-name"><a title="pybindgen.typehandlers.codesink.CodeSink.writeln
pybindgen.typehandlers.codesink.FileCodeSink.writeln
pybindgen.typehandlers.codesink.MemoryCodeSink.writeln
pybindgen.typehandlers.codesink.NullCodeSink.writeln" class="py-name" href="#" onclick="return doclink('link-66', 'writeln', 'link-57');">writeln</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">wrapper_body</tt><tt class="py-op">)</tt> </tt>
<a name="L205"></a><tt class="py-lineno">205</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L206"></a><tt class="py-lineno">206</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-67" class="py-name" targets="Method pybindgen.cppmethod.CppVirtualMethodParentCaller.generate_declaration()=pybindgen.cppmethod.CppVirtualMethodParentCaller-class.html#generate_declaration,Method pybindgen.cppmethod.CppVirtualMethodProxy.generate_declaration()=pybindgen.cppmethod.CppVirtualMethodProxy-class.html#generate_declaration,Method pybindgen.cppmethod.CustomCppMethodWrapper.generate_declaration()=pybindgen.cppmethod.CustomCppMethodWrapper-class.html#generate_declaration,Method pybindgen.enum.Enum.generate_declaration()=pybindgen.enum.Enum-class.html#generate_declaration,Method pybindgen.function.Function.generate_declaration()=pybindgen.function.Function-class.html#generate_declaration,Method pybindgen.overloading.OverloadedWrapper.generate_declaration()=pybindgen.overloading.OverloadedWrapper-class.html#generate_declaration"><a title="pybindgen.cppmethod.CppVirtualMethodParentCaller.generate_declaration
pybindgen.cppmethod.CppVirtualMethodProxy.generate_declaration
pybindgen.cppmethod.CustomCppMethodWrapper.generate_declaration
pybindgen.enum.Enum.generate_declaration
pybindgen.function.Function.generate_declaration
pybindgen.overloading.OverloadedWrapper.generate_declaration" class="py-name" href="#" onclick="return doclink('link-67', 'generate_declaration', 'link-67');">generate_declaration</a></tt><tt class="py-op">(</tt><tt class="py-name">code_sink</tt><tt class="py-op">,</tt> <tt class="py-name">extra_wrapper_parameters</tt><tt class="py-op">=</tt><tt class="py-name">extra_wrapper_params</tt><tt class="py-op">)</tt> </tt>
</div><a name="L207"></a><tt class="py-lineno">207</tt>  <tt class="py-line"> </tt>
<a name="L208"></a><tt class="py-lineno">208</tt>  <tt class="py-line">        <tt class="py-comment">#return "PyObject * %s (PyObject *args, PyObject *kwargs, PyObject **return_exception)" % self.wrapper_actual_name</tt> </tt>
<a name="L209"></a><tt class="py-lineno">209</tt>  <tt class="py-line"> </tt>
<a name="CustomFunctionWrapper.generate_call"></a><div id="CustomFunctionWrapper.generate_call-def"><a name="L210"></a><tt class="py-lineno">210</tt> <a class="py-toggle" href="#" id="CustomFunctionWrapper.generate_call-toggle" onclick="return toggle('CustomFunctionWrapper.generate_call');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pybindgen.function.CustomFunctionWrapper-class.html#generate_call">generate_call</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">kwargs</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="CustomFunctionWrapper.generate_call-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="CustomFunctionWrapper.generate_call-expanded"><a name="L211"></a><tt class="py-lineno">211</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> </tt>
</div></div><a name="L212"></a><tt class="py-lineno">212</tt>  <tt class="py-line"> </tt>
<a name="L213"></a><tt class="py-lineno">213</tt>  <tt class="py-line"> </tt>
<a name="OverloadedFunction"></a><div id="OverloadedFunction-def"><a name="L214"></a><tt class="py-lineno">214</tt> <a class="py-toggle" href="#" id="OverloadedFunction-toggle" onclick="return toggle('OverloadedFunction');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="pybindgen.function.OverloadedFunction-class.html">OverloadedFunction</a><tt class="py-op">(</tt><tt class="py-base-class">overloading</tt><tt class="py-op">.</tt><tt class="py-base-class">OverloadedWrapper</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="OverloadedFunction-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="OverloadedFunction-expanded"><a name="L215"></a><tt class="py-lineno">215</tt>  <tt class="py-line">    <tt class="py-docstring">"""Adds support for overloaded functions"""</tt> </tt>
<a name="L216"></a><tt class="py-lineno">216</tt>  <tt class="py-line">    <tt id="link-68" class="py-name" targets="Variable pybindgen.cppmethod.CppOverloadedConstructor.RETURN_TYPE=pybindgen.cppmethod.CppOverloadedConstructor-class.html#RETURN_TYPE,Variable pybindgen.cppmethod.CppOverloadedMethod.RETURN_TYPE=pybindgen.cppmethod.CppOverloadedMethod-class.html#RETURN_TYPE,Variable pybindgen.function.OverloadedFunction.RETURN_TYPE=pybindgen.function.OverloadedFunction-class.html#RETURN_TYPE,Variable pybindgen.overloading.OverloadedWrapper.RETURN_TYPE=pybindgen.overloading.OverloadedWrapper-class.html#RETURN_TYPE"><a title="pybindgen.cppmethod.CppOverloadedConstructor.RETURN_TYPE
pybindgen.cppmethod.CppOverloadedMethod.RETURN_TYPE
pybindgen.function.OverloadedFunction.RETURN_TYPE
pybindgen.overloading.OverloadedWrapper.RETURN_TYPE" class="py-name" href="#" onclick="return doclink('link-68', 'RETURN_TYPE', 'link-68');">RETURN_TYPE</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'PyObject *'</tt> </tt>
<a name="L217"></a><tt class="py-lineno">217</tt>  <tt class="py-line">    <tt id="link-69" class="py-name" targets="Variable pybindgen.cppmethod.CppOverloadedConstructor.ERROR_RETURN=pybindgen.cppmethod.CppOverloadedConstructor-class.html#ERROR_RETURN,Variable pybindgen.cppmethod.CppOverloadedMethod.ERROR_RETURN=pybindgen.cppmethod.CppOverloadedMethod-class.html#ERROR_RETURN,Variable pybindgen.function.OverloadedFunction.ERROR_RETURN=pybindgen.function.OverloadedFunction-class.html#ERROR_RETURN,Variable pybindgen.overloading.OverloadedWrapper.ERROR_RETURN=pybindgen.overloading.OverloadedWrapper-class.html#ERROR_RETURN"><a title="pybindgen.cppmethod.CppOverloadedConstructor.ERROR_RETURN
pybindgen.cppmethod.CppOverloadedMethod.ERROR_RETURN
pybindgen.function.OverloadedFunction.ERROR_RETURN
pybindgen.overloading.OverloadedWrapper.ERROR_RETURN" class="py-name" href="#" onclick="return doclink('link-69', 'ERROR_RETURN', 'link-69');">ERROR_RETURN</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'return NULL;'</tt> </tt>
</div><a name="L218"></a><tt class="py-lineno">218</tt>  <tt class="py-line"> </tt>
<a name="L219"></a><tt class="py-lineno">219</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-70" class="py-name"><a title="pybindgen.cppclass_typehandlers" class="py-name" href="#" onclick="return doclink('link-70', 'cppclass_typehandlers', 'link-44');">cppclass_typehandlers</a></tt> </tt>
<a name="L220"></a><tt class="py-lineno">220</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pybindgen-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Sun Jul 12 17:23:43 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
